import 'package:flutter_jojo_test/common/base/base_controller.dart';
import 'package:flutter_jojo_test/common/route/route.dart';
import 'package:get/get.dart';

import 'state.dart';

class SplashLogic extends BaseController {
  final SplashState state = SplashState();

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
    Future.delayed(const Duration(seconds: 3), () {
      Get.offAndToNamed(RouteGet.main);
    });
  }

  @override
  void onClose() {
    // TODO: implement onClose
    super.onClose();
  }
}
